Method and computer program product for controlling a configuration of a printer

ABSTRACT

A method and and computer program product for controlling a configuration of a printer. The printer receives a request for a printer control interface and sends the printer control parameters, and updates a control memory of the printer based on the series of printer control parameters.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a divisional of U.S. application Ser. No.08/856,183 filed on May 14, 1997 now U.S. Pat. No. 6,628,413 , nowallowed, which claims priority to U.S. provisional application Ser. No.60/017,398 filed on May 14, 1996. The contents of both of thoseapplications are incorporated herein by reference in their entirety.

BACKGROUND OF THE INVENTION Field of the Invention

This invention relates to a printer or printer system using the Javalanguage to control rasterizing an image and to control printing.

DESCRIPTION OF THE BACKGROUND

The Internet is undergoing explosive growth and many new technologiesare being developed to keep up with this growth. Previously, in order todevelop applications quickly, application developers sought to usespecialized cross-platform application development techniques whichcreate applications for multiple hardware and software platforms. Forexample, operating systems (i.e. Solaris, Windows 95, Windows 3.x, OS/2and Unix) create applications and executable files differently and havebeen implemented on various processor types (Intel processors, 680x0,Power PCs, and Sun SPARCs). To develop applications for all permutationsof operating systems and hardware is difficult and extends the productdevelopment cycle. To make cross-platform development faster and easier,Sun Microsystems developed a language called Java which isobject-oriented but simple. Java is described in Java in a Nutshell: ADesktop Quick Reference for Java Programmers by David Flannagan,published by O'Reilly & Associates, Inc., as well as in the Sun Seriesof books published by Prentice Hall Books entitled Core Java, InstantJava, Java by Example, and Just Java by Cornell, Pew, Jackson and VanDer Linden, respectively, which are incorporated herein by reference.One of Java's advantages is that it is a portable language which isindependent of operating systems and hardware architectures. Further,applications developed using Java are adaptable or extendable usingJava's ability to download new classes dynamically and to add thedownloaded classes to an existing class hierarchy. Java also providesthe advantages of distribution, language interpretation, security, highperformance and a multi-threaded implementation.

Java enables applications to be written using an extensible set ofobjects, with each set of objects being defined in a separate group ofobjects called a package. The core set of objects for Java are definedin the java.lang package and describe the most central characteristicsof the Java language. One of Java's advantages is that the charactertype that Java uses is the Unicode standard which allows English andAsian characters to be represented consistently and together inapplications or documents generated using Java.

Other languages have been used to represent the layout of documents asthey appear on printers. PostScript by Adobe is an extendablepage-layout language which supports text and graphics on the same page.Some aspects of PostScript are described in PostScript by Example byHenry McGilton and Mary Campione, published by Addison-Wesley PublishingCompany, the contents of which are incorporated herein by reference.PostScript uses stacks and dictionaries to extend the language. SomePostScript printers also have been equipped with non-volatile memorieswhich are used to store configuration information for the printers.However, PostScript's lack of strong security features has enabledmalicious users of the printer to update the parameters stored in thenon-volatile memory, thereby disturbing the printer's use in networkenvironments.

Other printer languages, such as PCL by Hewlett-Packard, have evolvedfrom uni-directional, dot-matrix line printers and therefore lack manyof the operators needed to control the placement of images on a page.PCL also lacks modularity. The macros defined by PCL use globally scopedvariables that can affect the performance of other macros defined by thelanguage.

Currently, all of the applications that print from host systems have toconvert their internal document format to PostScript or PCL and thendownload the document to the printer using a printer driver designed towork with the specifics of the connected printer. Since there is a widevariety of printers that can be used, each with a slightly different setof features and/or bugs, a large number of printer drivers havetraditionally been shipped with applications, even though end-usersactually only need the printer drivers for their specific printers.Furthermore, using conventional printing techniques, an inadvertentchange in the printer driver used could cause the printer to print outthe commands which describe how a page is to be laid out rather thaninterpreting the commands and rendering a resulting image. Further, forprinters which support downloadable fonts, downloading of fonts oftenhas been restricted to downloading to the printer's RAM, ROM fontcartridge or attached hard disk.

This model of application and printer driver interaction has created anincrease in work performed by end-users because of the inflexibility andlimited communication capability of the printer when communicating withthe application.

SUMMARY OF THE INVENTION

It is an object of the present invention to overcome at least one of thedeficiencies described above in the implementation of a printerlanguage.

It is a further object of the present invention to provide a printerwhich uses the Java language to interpret page-layout requests.

It is another object of the present invention to provide bi-directionalcommunication between an application or printer driver and a Javaprinter to enable a user to define how a page or series of pages shouldbe laid out.

It is yet another object of the present invention to provide a WorldWide Web interface to control a Java printer of the present application.

It is a further object of the present invention to use the Java-specificfeatures of object-orientation, distribution, interpretation, security,architecture and neutrality, portability, performance,multi-threadedness, and dynamic loading to implement an improvedprinter.

BRIEF DESCRIPTION OF THE DRAWINGS

A more complete appreciation of the invention and many of the attendantadvantages thereof will be readily obtained as the same becomes betterunderstood by reference to the following detailed description whenconsidered in connection with the accompanying drawings, wherein:

FIG. 1 is a layout diagram of a Java printer system according to a firstembodiment of the invention;

FIG. 2 is a schematic illustration of a Java printer system according tothe second embodiment of the present invention;

FIG. 3 is a schematic illustration of a Web browser interface forconfiguring a Java printer of the present invention;

FIGS. 4 and 5 are schematic illustrations of a queue manager forcontrolling printing using a Java printer of the present invention;

FIG. 6 is a schematic illustration of a Java applet in a Web browserthat is used to control the pagination of a document sent to a Javaprinter;

FIG. 7 is an HTML document used to identify to a Java-compatible WorldWide Web browser that a queue manager applet should be loaded and run;and

FIG. 8 is a schematic illustration of a class which extends the printerclasses of the Java language to implement printing on letterhead.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Referring now to the drawings, wherein like reference numerals designateidentical or corresponding parts throughout the several views, FIG. 1 isa view showing a layout of the Java printer system of the presentinvention. A conventional laser printer 100 is connected to a printserver 102 via a high speed communication link 106 (i.e. SCSI bus), andprint server 102 receives jobs via an external communication link 104which can be a network link (Ethernet, token ring, ATM), an ISDNconnection, or a modem connection. The print server 102 can be anygeneral purpose computer system capable of running a Java interpreter,and specifically includes at least a central processing unit (CPU),random access memory (RAM), a mass storage device (i.e., a hard disk, amagneto-optical disk), an input device (i.e., mouse, keyboard, touchscreen) and an output device (i.e., monitor, heads-up display, virtualreality headset). Further, the print server 102 includes any of theavailable commercial operating systems (i.e., UNIX, Windows 95, WindowsNT, OS/2, Linux) and any other software required to implement network orInternet communications.

In the first embodiment, Java print requests are received by the printserver 102 via the external communication link 104 through a socketlistening on a designated port (i.e., port 80 for hypertext transferprotocol), and the print server 102 converts the received print requestfrom a Java request to a printer request for the attached laser printer100 in the printer language of the attached laser printer 100. The printserver 102 also can receive standard hypertext transfer protocol (HTTP)requests and produce World Wide Web (WWW) pages as a result or updatethe configuration of the laser printer 100 if the HTTP request has beensent by a system administrator or an authorized user.

As shown in FIG. 2, the laser printer 100, print server 102 andcommunication link 106 can be combined into a single network printerwhich is a Java printer 110 connected to the external communication link104. In the second embodiment, the Java printer 110 receives printrequests or WWW/HTTP requests directly by listening on the appropriateport. Since Java is architecture neutral, the creation of a Java printer110 and its corresponding classes can quickly be ported or migrated to anew processor used in a new laser printer when the new processor becomesavailable. Further, when Java processors become available which executeJava Unicode instructions directly, the Java printer 110 can beimplemented with a Java processor. Any Java printer 110 should conformto the Java Virtual Machine Specification. The Aug. 21, 1995, Release1.0 Beta Draft version of the JVM specification is incorporated hereinby reference.

Java has a rich set of graphics operators that match PostScript and PCL,and since Java is an object-oriented language which provides extensions,new complex graphics operators can be created which are subclasses ofthe existing graphics primitives, thereby allowing complex images to bedescribed compactly. The present invention extends the Graphics class ofthe java.awt package to control drawing of images on pages, byimplementing a new class, Printer. Each of the other methods of theGraphics class would likewise be implemented to allow colors and fontsto be changed and to allow lines and filled and empty polygons to bedrawn. For example, calling java.awt.Printer.drawString(msg, x, y) wouldcause the string “msg” to be drawn on a page at position (x,y). ThePrinter class also would implement a function, similar to PostScript's“showpage” command, which signals that a complete page has been renderedand that the resulting image should be transferred to Java laser printer110. Further, based on the built-in security, network capability andmulti-lingual support of Java, a Java printer can handle inputs fromdifferent platforms in multiple languages and create the desireddocuments.

As shown in FIG. 3, a system administrator who wishes to configure aJava printer 110 can use a standard WWW browser (i.e., NetscapeNavigator, Mosaic, Microsoft Navigator, IBM Web Explorer) to remotelyconfigure the Java printer 110. The Web browser screen 120 includes atitle bar 122, a menu bar 124, button icons 126, a document identifiertext entry box 128 and plural additional controls such as drop box 130which includes a list of Internet connections for which a configurationcan be established. A system administrator would authenticatehimself/herself to the Java printer 110 using any available securitytechnique (i.e., Secure Socket Layer, Public Key Encryption, SymmetricKey Encryption, or a User ID and Password Hash), wherein the public key,private key or valid user ID and password hashes are stored in thenon-volatile memory of the Java printer 110 or in remote local withwhich the Java printer 110 can communicate securely. Havingauthenticated himself/herself, the system administrator would choose theconfigure document of printer1 as the document to be opened byspecifying the appropriate URL in the text entry box 128, such asspecifying:

-   -   http://printer1.companyname.com/configure.

When the Java printer 110 which was listening on the appropriate portreceives the request for this document, the Java printer 110 would parsethe name of the document requested from the rest of the request anddetermine that the system administrator wished to configure the printerfor a particular user. (The complete specification for the format of anHTTP request or response can be found in the HTTP standard (versions 1.1or 1.0). Information on HTML can be found in Using HTML: The DefinitiveGuide by Musciano and Kennedy, and information on Internet informationservices can be found in Managing Internet Information Services by Liuet al. The contents of these references are incorporated herein byreference.) In response to a request for a document, the Java printer110 would send back to the browser, via the socket used to send therequest, a response like the page shown in FIG. 3 and referenced byreference numeral 131. The Java printer 110 also may use otherinformation in the request to determine if the default response shouldbe modified. The response could be modified to include text in thesystem administrator's native language, or similar language/culturalchanges. The system administrator could then choose which user'sInternet number the configuration is for by selecting an Internet numberfrom combination box 130. As would be evident to one of ordinary skillin the art, this combination box could be replaced by a select box suchthat multiple configurations for multiple Internet addresses could beset simultaneously. The returned page 131 allows the systemadministrator to establish paper size by choosing one of the radiobuttons selecting A4 paper, 8.5×11 paper or legal size paper. Also, thedefault tray is specified, allowing the system administrator to choosebetween letterhead paper and plain paper.

Additional values can be set, as shown in the FIG. 3 and as well asthose parameters that would be evident to one of ordinary skill in theart in light of the present invention. In fact, any parameter usuallyset by buttons on a printer can be set through the standard WWWinterface. In addition, on-line information which can not be easilydisplayed using LCD screens on the printer can be provided by selectinga hypertext link 134. This help information can either point to localhelp or remotely stored help, such as might be stored at the WWW site ofthe manufacturer of the Java printer 110.

Further, the Java printer 110, or the combination print server 102 andlaser printer 100, can utilize the external communication link 104dynamically to retrieve documents or portions of documents from otherweb sites for printing or for otherwise modifying the operation of theJava printer 110, such as loading updates to printer code. The Javaprinter 110 can likewise use the external communication link 104 fordownloading fonts from remote locations whenever the font is needed. Todownload fonts, changes, or other information, the Java printer 110 canuse any transfer protocol implemented by an included Java package,including HTTP, FTP, Gopher, etc. By specifying the URL from which theinformation should be obtained and using the java.net.getContent( )method information can be received as a String. In addition, for new orpreviously unimplemented protocols, a java.net.URLConnection objectwould be used to receive and parse the contents of a new document type.As described earlier, this provides an advantage over PostScriptprinters which have to have fonts loaded in their RAM, ROM or hard diskin order to use them. Table 1 below shows some of the advantages ofusing Java over HP/PCL and PostScript.

TABLE I Network Configuration Partially Partially Yes Network SecurityNo No Yes Code Size Small Big Small Ability to Handle DifficultDifficult Easy Double-Byte Characters Customization Difficult DifficultEasy Resources One Location One Location Anywhere on the Network PrinterDriver Printer Specific Printer Specific Universal Graphics OperationDifficult Medium Easy Extensibility Difficult Difficult Easy UpgradeDifficult Difficult Easy Remote Diagnostics Very Difficult VeryDifficult Easy and Maintenance

As shown in FIG. 4, the Java printer 110 can additionally be configuredwith a queue manager which can further control the Java printer 110using a standard WWW interface 120. FIG. 4 shows that a systemadministrator has requested queue information from Java printer 110 andreceived back an applet which provides configuration information to thesystem administrator. When the system administrator uses URL:

-   -   http://printer1.companyname.com/queue,        the web browser 120 changes the title bar 122 to reflect that        the requested page represents the queue manager. The returned        page 136 includes a series of graphics 160 which represent        documents, their titles, their print times and the Internet        addresses from which the jobs were submitted. These graphics 160        are displayed in a scrollable window 144 controlled by a scroll        bar 138. Further, the applet includes a filter with an        associated combination box 140 for filtering the graphics 160        which are displayed in the scrollable window 144. As shown in        FIG. 5, when an Internet address is used as a filter, all        documents not submitted by a specified Internet address (i.e.,        123.45.67.89) are removed from the scrollable window 144.        Referring back to FIG. 4, the applet also provides buttons 146,        148, 150, 152, and 156 which control how the Java printer 110        processes the documents. To control a print job, any of the        graphics 160 can be highlighted and then one of the buttons 146,        148, 150, 152 and 156 depressed. The queue manager then will        modify the queue characteristics for the highlighted job(s)        according to the button which was depressed.

Since Java is multi-threaded, the Java printer 110 can multi-taskbetween any of its functions (i.e., printing the current job, receivinga new job, pausing a job, killing a job, reordering the job such that ajob is made the next job to be printed or the last job to be printed,displaying characteristics of a job, resuming a paused job, settingdefault configuration information or determining the status of theprinter). Conventional printers perform one job at a time and do nothave such a printing capability.

As shown in FIGS. 4 and 5, another advantage of a Java printer 110 isthat status information 139 can be requested while other activities arebeing performed. Although the status information 139 is only a snapshotof the current status, the applet can periodically update the statusinformation 139 using the network capabilities of Java and the browserprovided by the DatagramPacket, DatagramSocket and Socket classes, asimplemented by the java.net package. Furthermore, since the Java printer110 performs active multi-tasking, the Java printer 110 can alsoperiodically send status reports via to system administrators or otherusers by any other implemented protocol (i.e., SMTP, FTP).

As shown in FIG. 6, the Java printer 110 is also capable of performinginteractive pagination based on an application using Java as the printlanguage. The Java printer 110 can either be used as a traditionalprinter whereby the application specifies the pagination and sends printrequests to the Java printer 110 in preformatted pages, or theapplication wishing to print uses the enhanced capabilities of the Javaprinter 110 to request that the Java printer 110 create a defaultpagination based on the characteristics of the printer.

FIG. 6 shows a document which has been paginated by a Java printer 110.Having sent Java code in the form of a WWW/HTTP request to the Javaprinter 110, the pagination applet, or a portion of the applicationwritten to support Java, displays the result as specified by the Javaprinter 110. In FIG. 6, the document has been split into four thumbnailsketches 170 which depict the layout of the document as established bythe Java printer 110. The four thumbnail sketches 170 show that a figureis split across the second and third thumbnail sketches 170 into twoparts 172 a and 172 b. Further, a paragraph of text has been splitbetween the first and second pages, leaving a single line 171 a separatefrom the rest of the text 171 b. To modify the default pagination, theapplication places page arrows 173 next to the thumbnail sketches 170 toindicate where the user wishes the pagination to actually occur. Usingpage arrows 173, the single line of text of 171 a can be grouped withthe rest of the text 171 b, and the image 172 a and 172 b can begrouped. When the user has set the page arrows 173, the user uses theResubmit button 174 to send the new configuration Java printer 110 whichrecreates thumbnail sketches 170 and returns the new result to webbrowser or pagination output/application. If the thumbnail sketches 170were satisfiable to the user, the Ok button 176 would be used to signalthat the pagination has been accepted by the user and that the pagesshould be printed. In addition, the Cancel button 178 can be depressedif the user wishes to cancel the printing. This allows the Java printer110 to clear the Java print request from the pending queue ofoutstanding paginations. By explicitly clearing this information, thegarbage collection process of the Java interpreter can reclaim thememory of the Java printer 110 more quickly. Although FIG. 6 has beendescribed in terms of page arrows 173, any type of pagination identifiercould be used to describe how pages should be repaginated. For example,a continuous, scrollable image could be presented, and the user woulduse the applet/application to draw lines where the pagination should be.Furthermore, the standard hard return tag of HTML, <HR>, can be used inan alternate embodiment to show where page breaks occur. In addition,the thumbnail sketches 170 can be any type of graphic that can bedisplayed on a page 120. These graphics include thumbnail GIFs, Javaimages, etc., several of which are supported by the java.image package.

As shown in FIG. 7, the applet of FIGS. 4 and 5 can be generated usingstandard HTML code with a browser which supports Java. Using the APPLETkeyword, the browser knows to load the queue manager class and displaythe window with a width of 500 and a height of 300.

As shown in FIG. 8, the Java printer 110 can be extended with newclasses such as the Letterhead class of FIG. 8. The Letterhead classextends the printing class which provides the base printingfunctionality of the present invention. Although the Letterhead classshown is not completely illustrated, it would be evident to one ofordinary skill in the art that the Letterhead class would be used tofirst print the letterhead text onto a page to be printed, and then thePrint class would perform its printing of the rest of the page. Theillustrative class allows the printing on two types of letterhead, coversheets and everything else, by specifying different strings andpositions for the two pages. The Letterhead class could be extended inan alternate embodiment to use arrays, as supported by the Javalanguage, to allow multiple strings and positions to be stored for eachletterhead page.

Furthermore, to smooth the transition from PostScript and PCL to Java,Java printers can be implemented which utilize subclasses of the Printerclass that receive and render PostScript, PCL or both. These classes caneven be added dynamically by the system administrator when they becomeavailable. The new classes would be loaded using a URL specified by thesystem administrator. On the otherhand, traditional printer driverswhich utilize GDI calls can be modified to generate Java code from thereceived GDI application. For example, since windows documents aregenerated using standard GDI calls, a Java printer 110 can be selectedlike any other supported printer, and the Java printer driver then wouldconvert the Windows GDI calls into Java code to be sent to the Javaprinter 110.

Obviously, numerous modifications and variations of the presentinvention are possible in light of the above teachings without departingfrom the intended scope of the present invention. Such changes includestoring the user profile information in remote databases rather than inthe Java printer 110 itself. By using the Java SQL API, also known asthe JDBC, remote databases can store the user profile information, andapplets still can query and update the user profile information. Sincethe JDBC specification has not been finalized, the version 0.70 draftspecification dated May 7, 1996 is incorporated herein by reference.

1. A computer program product comprising a computer storage medium and acomputer program code mechanism embedded in the computer storage mediumwhich when executed by a computer, causes a printer to perform a methodof controlling a configuration of the printer, comprising: receiving arequest for a printer control interface from a computer remote from theprinter; sending the printer control interface to the remote computer,wherein the printer control interface is in the form of a Web page;receiving, from the computer remote from the printer, a series ofprinter control parameters in response to sending the printer controlinterface; and updating a control memory of the printer based on theseries of printer control parameters.
 2. The computer program product asclaimed in claim 1, further comprising: storing the series of printercontrol parameters in the control memory of the printer based on anidentification of the remote computer.
 3. The computer program productas claimed in claim 1, further comprising: storing the series of printercontrol parameters in the control memory of the printer based on anInternet address of the remote computer.
 4. The computer program productas claimed in claim 1, further comprising: storing the series of printerparameters in a database.
 5. The computer program product as claimed inclaim 1, wherein the series of printer control parameters correspond toa paper size.
 6. The computer program product as claimed in claim 1,wherein the series of printer control parameters correspond to trayselection.
 7. The computer program product as claimed in claim 1,wherein the series of printer control parameters correspond to an imagetype.
 8. An image forming device, comprising: an interface configured toreceive a request for a control interface from a computer remote fromthe image forming device; an interface configured to send the controlinterface to the remote computer, wherein the control interface is inthe form of a Web page; an interface configured to receive, from thecomputer remote from the image forming device, a series of controlparameters in response to sending the control interface; and a processorconfigured to update a control memory of the image forming device basedon the series of control parameters.
 9. The image forming device ofclaim 8, wherein the processor is configured to store the series ofcontrol parameters in the control memory of the image forming devicebased on an identification of the remote computer.
 10. The image formingdevice of claim 8, wherein the processor is configured to store theseries of printer control parameters in the control memory of the imageforming device based on an Internet address of the remote computer. 11.The image forming device of claim 8, wherein the processor is configuredto store the series of printer parameters in a database.
 12. The imageforming device of claim 8, wherein the series of printer controlparameters correspond to a paper size.
 13. The image forming device ofclaim 8, wherein the series of printer control parameters correspond totray selection.
 14. The image forming device of claim 8, wherein theseries of printer control parameters correspond to an image type.